package com.wenlong.train_ticketing_system_springboot.querymodule.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wenlong.train_ticketing_system_springboot.querymodule.pojo.Ticket;
import com.baomidou.mybatisplus.extension.service.IService;


/**
 *
 */
public interface TicketService extends IService<Ticket> {
    Page<Ticket> getTicketByPages(Long cur, Long size);

    Page<Ticket> createOrderWithTransactionIntoRedis(Long cur, Long size, Long id, Long uId);
    Page<Ticket> createOrderIntoMysql(Long cur, Long size, Long id, Long uId);

    Page<Ticket> getTicketWithConditionByPages(Long cur, long size, String descrip, String price, String store, String departTime);
}
